package com.java46.front.base.entity;
/**
 * @ClassName: GenericResult 
 * @Description: 封装数据为json格式的实体
 * @author: zuxia
 * @date: 2018年7月4日 下午2:37:09
 */
public class GenericResult {

	// 当isSuccess值为true时给用户响应的数据封装在data
		// isSuccess值为false，将ExceptionInterceptor中捕捉到errorMessage的封装在此errorMessage属性
		private boolean isSuccess; 
		private String errorMessage;//存储异常信息
		private Object data; //存储数据

		public boolean isSuccess() {
			return isSuccess;
		}
		public void setSuccess(boolean isSuccess) {
			this.isSuccess = isSuccess;
		}
		public String getErrorMessage() {
			return errorMessage;
		}
		public void setErrorMessage(String errorMessage) {
			this.errorMessage = errorMessage;
		}
		public Object getData() {
			return data;
		}
		public void setData(Object data) {
			this.data = data;
		}
}
